/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 05 - 19
 * Time: 12:59
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList myArraylist = new MyArrayList();
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.add(3);
        myArraylist.add(4);
        myArraylist.add(5);
        myArraylist.disPlay();
        System.out.println(myArraylist.get(1));
        myArraylist.add(0, 100);
        myArraylist.disPlay();
        System.out.println(myArraylist.contains(-10));
        System.out.println(myArraylist.contains(100));
        System.out.println(myArraylist.indexOf(5));
        System.out.println(myArraylist.indexOf(1000));
        myArraylist.set(5, 900);
        myArraylist.disPlay();
        myArraylist.remove(100);
        myArraylist.disPlay();
        myArraylist.remove(222);
        System.out.println(myArraylist.size());
        myArraylist.clear();
        myArraylist.disPlay();
    }
}